package com.yonyou.brigade.order_center.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @author xuexmf@yonyou.com
 * @since 2018-08-08
 */
@TableName("bri_hotel_room")
public class BriHotelRoom extends Model<BriHotelRoom> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 订单号
     */
    @TableField("order_no")
    private String orderNO;
    /**
     * 入住人姓名
     */
    @TableField("psg_name")
    private String psgName;
    /**
     * 入住人员工编号
     */
    @TableField("oa_user_code")
    private String OAUserCode;
    /**
     * 入住人手机
     */
    @TableField("person_mobile")
    private String personMobile;
    /**
     * 入住人人数
     */
    @TableField("psg_nums")
    private Integer psgNums;
    /**
     * 成本中心
     */
    @TableField("cost_center")
    private String costCenter;
    /**
     * 成本中心2
     */
    @TableField("cost_center2")
    private String costCenter2;
    /**
     * 成本中心3
     */
    @TableField("cost_center3")
    private String costCenter3;
    /**
     * 部门1
     */
    @TableField(exist = false)
    private String department1;
    /**
     * 部门1
     */
    @TableField(exist = false)
    private String department2;
    /**
     * 部门1
     */
    @TableField(exist = false)
    private String department3;
    /**
     * 差旅是否超标
     * Y是， N否
     */
    @TableField("is_rule_over")
    private String isRuleOver;
    /**
     * 不符合差旅项
     */
    @TableField("no_travel_rules")
    private String noTravelRules;
    /**
     * 预付酒店服务费
     */
    @TableField("service_fee")
    private BigDecimal serviceFee;
    /**
     * 房型名称
     */
    @TableField("room_name")
    private String roomName;
    /**
     * 房型编号
     */
    @TableField("room_type_id")
    private String roomTypeId;

    private Date ts;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNO() {
        return orderNO;
    }

    public void setOrderNO(String orderNO) {
        this.orderNO = orderNO;
    }

    public String getPsgName() {
        return psgName;
    }

    public void setPsgName(String psgName) {
        this.psgName = psgName;
    }

    public String getOAUserCode() {
        return OAUserCode;
    }

    public void setOAUserCode(String OAUserCode) {
        this.OAUserCode = OAUserCode;
    }

    public String getPersonMobile() {
        return personMobile;
    }

    public void setPersonMobile(String personMobile) {
        this.personMobile = personMobile;
    }

    public Integer getPsgNums() {
        return psgNums;
    }

    public void setPsgNums(Integer psgNums) {
        this.psgNums = psgNums;
    }

    public String getCostCenter() {
        return costCenter;
    }

    public void setCostCenter(String costCenter) {
        this.costCenter = costCenter;
    }

    public String getCostCenter2() {
        return costCenter2;
    }

    public void setCostCenter2(String costCenter2) {
        this.costCenter2 = costCenter2;
    }

    public String getCostCenter3() {
        return costCenter3;
    }

    public void setCostCenter3(String costCenter3) {
        this.costCenter3 = costCenter3;
    }

    public String getDepartment1() {
        return department1;
    }

    public void setDepartment1(String department1) {
        this.department1 = department1;
    }

    public String getDepartment2() {
        return department2;
    }

    public void setDepartment2(String department2) {
        this.department2 = department2;
    }

    public String getDepartment3() {
        return department3;
    }

    public void setDepartment3(String department3) {
        this.department3 = department3;
    }

    public String getIsRuleOver() {
        return isRuleOver;
    }

    public void setIsRuleOver(String isRuleOver) {
        this.isRuleOver = isRuleOver;
    }

    public String getNoTravelRules() {
        return noTravelRules;
    }

    public void setNoTravelRules(String noTravelRules) {
        this.noTravelRules = noTravelRules;
    }

    public BigDecimal getServiceFee() {
        return serviceFee;
    }

    public void setServiceFee(BigDecimal serviceFee) {
        this.serviceFee = serviceFee;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getRoomTypeId() {
        return roomTypeId;
    }

    public void setRoomTypeId(String roomTypeId) {
        this.roomTypeId = roomTypeId;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String ORDER_NO = "order_no";

    public static final String PSG_NAME = "psg_name";

    public static final String OA_USER_CODE = "oa_user_code";

    public static final String PERSON_MOBILE = "person_mobile";

    public static final String PSG_NUMS = "psg_nums";

    public static final String COST_CENTER = "cost_center";

    public static final String COST_CENTER2 = "cost_center2";

    public static final String COST_CENTER3 = "cost_center3";

    public static final String IS_RULE_OVER = "is_rule_over";

    public static final String NO_TRAVEL_RULES = "no_travel_rules";

    public static final String SERVICE_FEE = "service_fee";

    public static final String ROOM_NAME = "room_name";

    public static final String ROOM_TYPE_ID = "room_type_id";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BriHotelRoom{" +
                "id=" + id +
                ", orderNO=" + orderNO +
                ", psgName=" + psgName +
                ", OAUserCode=" + OAUserCode +
                ", personMobile=" + personMobile +
                ", psgNums=" + psgNums +
                ", costCenter=" + costCenter +
                ", costCenter2=" + costCenter2 +
                ", costCenter3=" + costCenter3 +
                ", department1=" + department1 +
                ", department2=" + department2 +
                ", department3=" + department3 +
                ", isRuleOver=" + isRuleOver +
                ", noTravelRules=" + noTravelRules +
                ", serviceFee=" + serviceFee +
                ", roooName=" + roomName +
                ", roomTypeId=" + roomTypeId +
                ", ts=" + ts +
                '}';
    }
}
